package config.infra;

import org.apache.ibatis.mapping.Environment;
import org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory;

/**
 * Created by yuanj on 2018/4/18.
 */
public class EnvironmentCreator {

  private static final String ID = "DEV";

  public static Environment createEnvironment() {
    return new Environment(ID, new JdbcTransactionFactory(), DataSourceCreator.createDataSourse());
  }

}
